package link.xieyu.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 帖子表
 */
@ApiModel(value = "link-xieyu-pojo-AppArticle")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AppArticle implements Serializable {
    public static final String COL_ID = "id";
    public static final String COL_USER_ID = "user_id";
    public static final String COL_TITLE = "title";
    public static final String COL_LABEL = "label";
    public static final String COL_CONTEXT = "context";
    public static final String COL_IS_PAY = "is_pay";
    public static final String COL_PRICE = "price";
    public static final String COL_CREATE_TIME = "create_time";
    public static final String COL_UPDATE_TIME = "update_time";
    @ApiModelProperty(value = "")
    private Integer id;

    /**
     * 发表人
     */
    @ApiModelProperty(value = "发表人")
    private Integer userId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;

    /**
     * 标签，不同标签用逗号隔开
     */
    @ApiModelProperty(value = "标签，不同标签用逗号隔开")
    private String label;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    private String context;

    /**
     * 是否付费
     */
    @ApiModelProperty(value = "是否付费")
    private Integer isPay;

    /**
     * 金额，默认0
     */
    @ApiModelProperty(value = "金额，默认0")
    private Integer price;

    @ApiModelProperty(value = "")
    private Date createTime;

    @ApiModelProperty(value = "")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
